<template>
  <div class="home">
    <router-view class="page"></router-view>
    <van-tabbar route>
      <van-tabbar-item replace to="/index" icon="wap-home-o">首页</van-tabbar-item>
      <van-tabbar-item replace to="/search" icon="search">搜索</van-tabbar-item>
      <van-tabbar-item replace to="/cart" icon="cart-o">购物车</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
// @ is an alias to /src

export default {
  name: "Home",
  components: {},
};
</script>
<style lang="scss" scoped>
.home {
  height: 100%;
}
.page{
  height: calc(100% - 50px);
}
</style>
